package springboot.com.elasticsearch.bean;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "Demo", type = "demo", shards = 1, replicas = 0, refreshInterval = "-1")
public class Demo {
	 @Id
	  private String id;
	  private String name;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Demo(String name) {
		super();
		this.name = name;
	}
	  
	
	  
}
